using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "Condition17-死亡的棋子是友方的", menuName = "Skill/Condition/Condition17-死亡的棋子是友方的", order = 17)]
public class Condition17 : ConditionBase
{
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        if (e is not KillChessEvent killChessEvent) return false;
        return killChessEvent.DeadChess.GetChessSide() == pair.Chess.GetChessSide();
    }
}